//
//  ZLWUserInfoManager.m
//  EPA
//
//  Created by lanou3g on 16/4/25.
//  Copyright © 2016年 zlw. All rights reserved.
//

#import "ZLWUserInfoManager.h"

@implementation ZLWUserInfoManager

+ (instancetype)shareManager
{
    static ZLWUserInfoManager *manager = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        manager = [[ZLWUserInfoManager alloc] init];
    });
    return manager;
}

-(void)LoginWithUserDict:(NSDictionary *)dict
{
    if (dict) {
        [self setValuesForKeysWithDictionary:dict];
    }
}

-(void)setValue:(id)value forKey:(NSString *)key
{
    [super setValue:value forKey:key];
    [[NSUserDefaults standardUserDefaults] setObject:value forKey:key];
    [[NSUserDefaults standardUserDefaults] synchronize];
}
@end
